import request from '@/utils/request'

export function fetchSiteMenuList() {
  return request({
    url: '/site/getSiteMenus',
    method: 'get'
  })
}

export function fetchSiteList(query) {
  return request({
    url: '/site/list',
    method: 'get',
    params: query
  })
}

export function addSite(data) {
  return request({
    url: '/site/addSite',
    method: 'post',
    data
  })
}

export function updateSite(data) {
  return request({
    url: '/site/updateSite',
    method: 'post',
    data
  })
}

export function deleteSite(id) {
  return request({
    url: '/site/deleteSite/' + id,
    method: 'delete'
  })
}

